<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="color-scheme" content="light dark">
  <title>现代简洁主页</title>
  <meta name="description" content="一个简洁、现代、响应式的静态主页模板。">
  <meta property="og:type" content="website">
  <meta property="og:title" content="现代简洁主页">
  <meta property="og:description" content="一个简洁、现代、响应式的静态主页模板。">
  <meta property="og:image" content="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%232563eb'/%3E%3Cstop offset='100%25' stop-color='%231d4ed8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='6' y='6' width='52' height='52' rx='12' fill='url(%23g)'/%3E%3Cpath d='M21 43V21h5l6 12 6-12h5v22h-4V28l-6 12h-2l-6-12v15z' fill='%23ffffff'/%3E%3C/svg%3E">
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%232563eb'/%3E%3Cstop offset='100%25' stop-color='%231d4ed8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='6' y='6' width='52' height='52' rx='12' fill='url(%23g)'/%3E%3Cpath d='M21 43V21h5l6 12 6-12h5v22h-4V28l-6 12h-2l-6-12v15z' fill='%23ffffff'/%3E%3C/svg%3E" type="image/svg+xml">
  <style>
  /* 基础与主题变量 */
  :root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-contrast: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0b1220;
      --text: #e5e7eb;
      --muted: #a3a3a3;
      --surface: #0e1628;
      --border: #1f2a44;
      --primary: #60a5fa;
      --primary-600: #3b82f6;
      --primary-contrast: #0b1220;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
      --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
    }
  }

  /* Reset 与排版 */
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img, svg { display: block; max-width: 100%; }

  /* 可访问性 */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--surface); color: var(--text); border-radius: 8px; box-shadow: var(--shadow-sm); }
  :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

  /* 布局 */
  .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  .site-header {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(1.2) blur(8px);
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--border);
  }
  .header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { letter-spacing: 0.2px; }

  .site-nav .nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
  .site-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
  .site-nav a:hover { color: var(--text); background: var(--surface); }

  /* Hero */
  .hero { text-align: center; padding: 96px 0 64px; }
  .hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 16px; }
  .hero .lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); margin: 0 auto 24px; max-width: 680px; }
  .hero .cta { display: inline-flex; gap: 12px; }

  /* 按钮 */
  .button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.2px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); color: var(--text); background: var(--surface); }
  .button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
  .button.primary { background: var(--primary); color: var(--primary-contrast); border-color: transparent; }
  .button.ghost { background: transparent; }

  /* 特点 */
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 56px; }
  .feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform 120ms ease, box-shadow 120ms ease; }
  .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .feature .icon { font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in oklab, var(--primary) 18%, var(--surface)); color: var(--text); margin-bottom: 10px; }
  .feature h3 { margin: 0 0 6px; font-size: 18px; }
  .feature p { margin: 0; color: var(--muted); }

  /* 其他区块 */
  .about, .contact { padding: 24px 0; }
  .social { display: flex; gap: 12px; list-style: none; margin: 10px 0 0; padding: 0; }
  .social a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
  .social a:hover { background: color-mix(in oklab, var(--primary) 12%, var(--surface)); }

  /* 页脚 */
  .site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
  .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
  .back-to-top { color: var(--muted); text-decoration: none; }
  .back-to-top:hover { color: var(--text); }

  /* 响应式小优化 */
  @media (max-width: 640px) {
    .header-inner { height: 58px; }
    .site-nav .nav-list { gap: 10px; }
    .hero { padding-top: 72px; }
  }
  </style>
</head>
<body>
  <a class="skip-link" href="#main">跳到主要内容</a>

  <header class="site-header">
    <div class="container header-inner">
      <a class="brand" href="#" aria-label="主页">
        <svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true">
          <defs>
            <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
              <stop offset="0%" stop-color="var(--primary)" />
              <stop offset="100%" stop-color="var(--primary-600)" />
            </linearGradient>
          </defs>
          <rect x="2" y="2" width="28" height="28" rx="6" fill="url(#g)"/>
          <path d="M10 22V10h2.8l3.2 6.8L19.2 10H22v12h-2.4v-7.2l-3.2 6.8h-1L12.4 14.8V22z" fill="var(--primary-contrast)"/>
        </svg>
        <span class="brand-name">Modern</span>
      </a>
      <nav class="site-nav" aria-label="主导航">
        <ul class="nav-list">
          <li><a href="#features">特点</a></li>
          <li><a href="#about">关于</a></li>
          <li><a href="#contact">联系</a></li>
        </ul>
      </nav>
    </div>
  </header>

  <main id="main">
    <section class="hero container">
      <h1>更快上手的现代化静态主页</h1>
      <p class="lead">开箱即用的极简设计、可访问性、暗色模式与移动端自适应。</p>
      <div class="cta">
        <a class="button primary" href="#features">立即开始</a>
        <a class="button ghost" href="#about">了解更多</a>
      </div>
    </section>

    <section id="features" class="features container">
      <article class="feature">
        <div class="icon" aria-hidden="true">⚡</div>
        <h3>快速</h3>
        <p>纯静态，无依赖，首屏极速呈现。</p>
      </article>
      <article class="feature">
        <div class="icon" aria-hidden="true">🎨</div>
        <h3>美观</h3>
        <p>现代配色与排版，默认即美。</p>
      </article>
      <article class="feature">
        <div class="icon" aria-hidden="true">🌓</div>
        <h3>暗色模式</h3>
        <p>自动跟随系统主题，护眼更舒适。</p>
      </article>
      <article class="feature">
        <div class="icon" aria-hidden="true">🔒</div>
        <h3>可访问</h3>
        <p>语义化结构与可见焦点，兼顾键盘操作。</p>
      </article>
    </section>

    <section id="about" class="about container">
      <h2>关于本模板</h2>
      <p>本模板注重易用与可维护性，结构清晰、样式简洁，适合个人主页、项目介绍与快速原型。</p>
    </section>

    <section id="contact" class="contact container">
      <h2>联系与社交</h2>
      <p>你可以将下方链接替换为自己的社交与仓库地址。</p>
      <ul class="social">
        <li><a href="#" aria-label="GitHub">GitHub</a></li>
        <li><a href="#" aria-label="Twitter">Twitter/X</a></li>
        <li><a href="#" aria-label="Email">Email</a></li>
      </ul>
    </section>
  </main>

  <footer class="site-footer">
    <div class="container footer-inner">
      <p>© 2025 你的名称 · 保留所有权利</p>
      <a class="back-to-top" href="#">回到顶部 ↑</a>
    </div>
  </footer>
</body>
</html> 